import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		show: false,
		goodsId: 0
	},
	mutations: {
		change(state, flag){
			state.show = flag
		},
		getGoodsId(state, goodsId){
			state.goodsId = goodsId
		}
	}
})
export default store